package io.renren.modules.user.openfeign;

import io.renren.common.utils.R;
import io.renren.modules.app.entity.UserEntity;
import io.renren.modules.user.vo.UserVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * @author 李涛
 * @date 2020-08-18 14:49
 */
@FeignClient("hunzi-user")
public interface UserOpenFeignService {
    @RequestMapping("/user/user/list")
    // @RequiresPermissions("article:user:list")
    R list(@RequestParam Map<String, Object> params);
    @RequestMapping("/user/user/updateuserstatus")
    R userStatus(@RequestBody UserVo userEntity);
    @RequestMapping("/user/user/updateperms")
    R updatePerms(@RequestBody UserVo userVo);
}
